// import React from 'react';
// import ReactDOM from 'react-dom';

import React from './lib/react';
import ReactDOM from './lib/react-dom';


class Test extends React.Component {

  render() {
    return <div>Hello Timly,</div>
  }
}

function Demo() {
  return <Test />
}

class App extends React.Component {

  constructor(props) {
    super(props);
    this.state = {
      count: 0,
    }
    setTimeout(() => {
      this.setState({
        count: 45
      })
    }, 1000)
  }

  render() {
    return <Demo />
  }
}

ReactDOM.render(
  <App/>,
  document.getElementById('root')
);

// 注意如果要使用老的把 jsx 编译成 React.createElement(), 必须在启动项中设置 cross-env DISABLE_NEW_JSX_TRANSFORM=true
// 如： "start": "cross-env DISABLE_NEW_JSX_TRANSFORM=true react-scripts start",